//package person.learn.service.impl;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.data.domain.Page;
//import org.springframework.stereotype.Service;
//import person.learn.entity.Student;
//import person.learn.repository.StudentRepository;
//import person.learn.service.StudentService;
//
//import java.util.List;
//
///**
// * Created by barton on 16-2-1.
// */
//@Service
//public class StudentServiceImpl implements StudentService {
//
//    @Autowired
//    private StudentRepository studentRepository;
//
//    @Override
//    public Student findByName(String name) {
//        return this.studentRepository.findByName(name);
//    }
//
//    @Override
//    public Student findOne(String id) {
//        return this.studentRepository.findOne(id);
//    }
//
//    @Override
//    public Student save(Student student) {
//        return this.studentRepository.save(student);
//    }
//
//    @Override
//    public void save(List<Student> studentList) {
//        this.studentRepository.save(studentList);
//    }
//
//    @Override
//    public void delete(String id) {
//        this.studentRepository.delete(id);
//    }
//
//    @Override
//    public Page<Student> findAll() {
//        return (Page<Student>) this.studentRepository.findAll();
//    }
//}
